<template>
<view class="container">
    <view class="header">
        {{info.name}}
    </view>
    <view class="company">
        <view class="comapny_top">
            <image v-if="info.license" :src="imgUrl+info.license"></image>
        </view>
        <view class="companyname">
            <view>联系人:{{info.contacts}} </view>
            <view class="address">
                公司地址:{{info.address}}</view>
        </view>
    </view>
    <view class="remark">公司介绍</view>
    <view class="list">
        <image v-for="(item,index) in info.imgs" :key="index" :src="imgUrl+item"></image>
    </view>
</view>
</template>
<script>
import request from '@/util/request.js'	
export default {
	data() {
		return {
			imgUrl:this.url,
			info:{},
		}
	},
	onLoad:function(e){
		uni.showLoading({
		    title: '加载中'  
		});
		this.getCompanyInfo(e.id)
	},
	methods: {
		getCompanyInfo:function(id){
			var that = this;
			var data = {'id':id}
			request({
				url: 'company/info',
				method: 'get',
				data:data,
				success: (res) => {
					uni.hideLoading();
					that.info = res.data.data
				}
			})
		}
	}
}
</script>
<style scoped>
	@import url("./css/info.css");
</style>
